﻿namespace SUMO.MediaBrowser.Controls.Adorners {
    /// <summary>
    /// Represents an adorner frame, e.g. glass border
    /// </summary>
    public interface IAdornerFrame {
        /// <summary>
        /// Called when the frame is attached to adorner
        /// </summary>
        void Attached();

        /// <summary>
        /// Called when the frame is detached from adorner
        /// </summary>
        void Detached();

        /// <summary>
        /// Sets the zoom level for this adorner frame. The zoom level is used by the frame to display correct coordinates (e.g. Width and Height)
        /// </summary>
        /// <param name="newZoomLevel"></param>
        void SetZoom(double newZoomLevel);

        void SizeChanged(double newWidth, double newHeight);
    }
}
